/*
 * @Author: TJN tjn@246@126.com
 * @Date: 2024-06-21 13:53:18
 * @LastEditors: TJN tjn@246@126.com
 * @LastEditTime: 2024-06-21 16:34:22
 * @FilePath: \hdcms-nest\src\common\common.module.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import { Global, Module } from '@nestjs/common';
import { ConfigService } from './config.service';
import { ConfigModule as baseModule } from '@nestjs/config';
import { PrismaService } from './prisma.service';
import config from '../config';
@Global()
@Module({
  imports: [
    baseModule.forRoot({
      load: [config],
    }),
  ],
  controllers: [],
  providers: [ConfigService, PrismaService],
  exports: [ConfigService,PrismaService],
})
export class ConfigModule {}
